﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.WorkflowCore
{
    /// <summary>
    /// 连接信息集合
    /// </summary>
    public class LinkCollection
    {
        private List<Link> _list;

        public LinkCollection()
        {
            _list = new List<Link>();
        }

        public int Count
        {
            get
            {
                return _list.Count;
            }
        }

        public Link this[int index]
        {
            get
            {
                return _list[index];
            }
        }

        public void Add(Link link)
        {
            _list.Add(link);
        }

        public void Remove(Link link)
        {
            _list.Remove(link);
        }
    }
}
